package com.wt.filter;

import javax.servlet.*;
import java.io.IOException;
import java.nio.channels.FileChannel;

/**
 * Created with IDEA
 * Describe:
 * Author:tianji
 * Date:2018/10/26
 * Time:17:00
 */
public class MyFilter implements Filter {

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("myFilter 执行了");
        filterChain.doFilter(servletRequest,servletResponse);
    }

    @Override
    public void destroy() {

    }
}
